/**
 * 本代码实现了字体的设置
 */
package com.bf.tool;

import java.awt.Font;
import java.awt.FontFormatException;
import java.io.BufferedInputStream;
import java.io.IOException;

import com.bf.zk.UserLogin;

/**
 * @author Administrator
 *
 */
public class SetWord {

	
	public  SetWord(){
		// 设置缺省的字体
				try {
					Font font = Font.createFont(
							Font.TRUETYPE_FONT,
							new BufferedInputStream(UserLogin.class
									.getResourceAsStream("/com/bf/tool/simsun.ttc")));
					font = font.deriveFont(Font.PLAIN, 14);
					SetFont.setFont(font);
				} catch (FontFormatException e) {
					System.out.println("错误:" + e.getMessage());
				} catch (IOException e) {
					System.out.println("错误:" + e.getMessage());
				}
	}
	
//	public static void main(String[] args) {
//		// TODO Auto-generated method stub
//		new SetWord();
//	}

}
